package cate.game.role.farm.udgpalace;

import com.fasterxml.jackson.annotation.JsonIgnore;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("道具栏")
public class UdgPalaceItem {
    @NoteField("剩余数量")
    public int value;
    @NoteField("使用次数")
    public int use;
    @JsonIgnore
    @NoteField("绑定组")
    public int group;

    public UdgPalaceItem() {

    }

    public UdgPalaceItem(int initValue) {
        this.value = initValue;
    }

    public void useIt() {
        value -= 1;
        use ++;
    }

    public void update(int group) {
        value ++;
        this.group = group;
    }
}
